﻿package com.game.engine.phys
{
    import base.BaseObject;
    
    import nape.callbacks.InteractionCallback;
    
    public class Collision2D 
    {

        public var gameObject:BaseObject;
        public var body:RigidBody;
        public var otherGameObject:BaseObject;
        public var otherBody:RigidBody;
        public var interactionCallback:InteractionCallback;
        public var normal:Vector2D;

        public function Collision2D(gameObject1:BaseObject, body1:RigidBody, gameObject2:BaseObject, body2:RigidBody, vec:Vector2D)
        {
            normal = vec;
            gameObject = gameObject1;
            body = body1;
            otherGameObject = gameObject2;
            otherBody = body2;
        }
    }
}